/*
 * Main.cpp
 *
 *  Created on: 25.01.2013
 *      Author: Maksim Lazeba
 */

#include <vector>
#include "my_structs.h"
#include "convex_hull.h"
#include <iostream>
int main()
{
	typedef std::vector<point_t> points_t;
	points_t points;

	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
	{
		point_t p;
		std::cin >> p;
		points.push_back(p);
	}

	points_t hull = convex_hull(points);

	std::cout << hull;
}

